import Sequelize from 'sequelize'
import Cache from '../../lib/cache'
import config from '../config'

let opt = Cache(config).sequelize();
let db = new Sequelize(...opt);

export default {
    User: db.define('aina_user', {
        username: String,
        password: String,
    }),
    Article: db.define('aina_article', {
        title: String,
        content: String,
        userid: Number,
    }),
}
